package com.work.demo.resubmit;

import com.work.demo.utils.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class ResubmitController {
 
      @PostMapping("/resubmit/test")
      @Resubmit(delaySeconds = 10) //加了防止重复提交的注解
      public R saveOrder(@RequestBody Map mapper) {
            // TODO
            return R.ok();  //模拟返回结果
      }
}
